﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>个人中心 - {site.Name}</title>
<script type="text/javascript" src="{site.Dir}_data/SysConfig.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery-min.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery.jtemplates.js"></script>
<script type="text/javascript" src="{site.Dir}scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="{site.Dir}style/global.css" />
<script type="text/javascript" src="{site.Dir}scripts/front.js"></script>
<style type="text/css">
@import url({site.Dir}user/otherfiles/css/style.css);
</style>
<script type="text/javascript">
(function(){
	$(document).ready(function() {
		$.ajax({
			type:		"get",
			dataType:	"json",
			data:		"time="+(new Date().getTime()),
			url:		site.Dir + "ajax/user.aspx?oper=ajaxUserInfo",
			error:		function(XmlHttpRequest,textStatus, errorThrown){if(XmlHttpRequest.responseText!=""){alert(XmlHttpRequest.responseText);}},
			success:	function(data){
				//数据绑定
				$(".index_name").html(data.username+"（"+data.groupname+"）");
				$(".u_points").text(data.points);
				$(".u_integral").text(data.integral);
				$("#u_myface").attr("src","{site.Dir}avatar/"+data.userid+"_l.jpg?" + (new Date().getTime()));
				$(".u_email").text(data.email);
				if(data.sex=="2")
					$(".u_sex").text("女");
				if(data.sex=="0")
					$(".u_sex").text("保密");
				if(data.isvip=="1")
					$(".u_vipdate").text("VIP有效期："+data.vipdate);
				$(".u_birthday").text(data.birthday);
				$(".u_truename").text(data.truename);
				$(".u_comefrom").text(data.comefrom);
				if(data.idtype=="1")
					$(".u_idtype").text("身份证");
				else if(data.idtype=="2")
					$(".u_idtype").text("军官证");
				else if(data.idtype=="3")
					$(".u_idtype").text("学生证");
				else
					$(".u_idtype").text("其他证件");
				$(".u_idcard").text(data.idcard);
				$(".u_workunit").text(data.workunit);
				$(".u_address").text(data.address);
				$(".u_zipcode").text(data.zipcode);
				$(".u_mobiletel").text(data.mobiletel);
				$(".u_telephone").text(data.telephone);
				$(".u_qq").html(data.qq);
				$(".u_msn").html(data.msn);
				$(".u_homepage").html("<a href='"+data.homepage+"' target='_blank'>"+data.homepage+"</a>");
			}
		});
		ajaxTopFriendList();
	});
})();
function ajaxTopFriendList()
{
	$.ajax({
		type:		"get",
		dataType:	"json",
		data:		"page=1&pagesize=6&time="+(new Date().getTime()),
		url:		site.Dir + "user/friendlist/ajax.aspx?oper=ajaxGetList",
		success:	function(d){
			switch (d.result)
			{
			case '0':
				JumbotCms.Alert(d.returnval, "0");
				break;
			case '1':
				$("#ajaxTopFriendList").setTemplateElement("tplRightMenu", null, {filter_data: false});
				$("#ajaxTopFriendList").processTemplate(d);
				break;
			}
		}
	});
}
</script>
<script type="text/javascript" src="{site.Dir}user/otherfiles/scripts/ajax.js"></script>
</head>
<body>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=header" width="100%" height="76" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifheader"></iframe>
<!--顶部结束,中框架开始-->
<div id="wrap">
	<div id="main">
		<div id="app_sidebar">
			<ul class="app_list" id="default_userapp">
				<li class="currently"><img src="{site.Dir}user/otherfiles/image/writer_v2/user_home.gif"><a href="{site.Dir}user/index/index.aspx">用户管理中心</a></li>
			</ul>
			<ul class="app_list" id="my_userapp">
				<li class="hr"></li>
				<li><img src="{site.Dir}user/otherfiles/image/writer_v2/contribute.gif"><a href="{site.Dir}user/contribute/index.aspx" target="_blank">我的投稿</a><em></em></li>
				<li><img src="{site.Dir}user/otherfiles/image/app/message.gif"><a href="{site.Dir}user/pmlist/index.aspx">短信</a><em><a href="{site.Dir}user/pmsend/index.aspx">发送</a></em></li>
				<li><img src="{site.Dir}user/otherfiles/image/app/friend.gif"><a href="{site.Dir}user/friendlist/index.aspx">好友</a><em><a href="{site.Dir}user/friendadd/index.aspx">添加</a></em></li>
				<li><img src="{site.Dir}user/otherfiles/image/app/mtag.gif"><a href="{site.Dir}mtag/index/index.aspx">群组</a><em><a href="{site.Dir}user/mtag_thread">话题</a></em></li>
				<li><img src="{site.Dir}user/otherfiles/image/app/favorite.gif"><a href="{site.Dir}user/favorite/index.aspx">收藏夹</a>
			</ul>
		</div>
		<div id="mainarea">
			<div id="content">
				<div class="composer_header">
					<div style="float:left;width:137px;">
						<div class="ar_r_t">
							<div class="ar_l_t">
								<div class="ar_r_b">
									<div class="ar_l_b"><img id="u_myface" src="{site.Dir}avatar/0_l.jpg" onerror="this.src='{site.Dir}avatar/0_l.jpg'" width="120" height="120" /></div>
								</div>
							</div>
						</div>
						<div style="float:left;width:137px;">
							<ul class="u_setting" >
								<li><a href="{site.Dir}user/changeprofile/index.aspx">修改资料</a></li>
								<li><a href="{site.Dir}user/changepass/index.aspx">密码设置</a></li>
							</ul>
						</div>
					</div>
					<div class="composer" style="float:left">
						<h3 class="index_name">username</h3>
						<p>绑定邮箱：<span class="u_email"></span></p>
						<p style="font-size:13px;color:red;margin:0px auto 0px auto;"> 当前账户点数：<strong style="color:red" class="u_points">0</strong></p>
						<p> 已有 <span class="u_integral">0</span>个积分</p>
						<p><span class="u_vipdate" style="color:red;"></span></p>
					</div>
				</div>
				<div class="clear"></div>
				<!--我的概况-->
				<div class="inportant_remind">
					<h1>个人资料<span></span></h1>
					<ul>
						<li><span class="b">性别：</span><span class="u_sex">男</span></li>
						<li><span class="b">真实姓名：</span><span class="u_truename"></span></li>
						<li><span class="b">出生日期：</span><span class="u_birthday"></span></li>
						<li><span class="b">所在地区：</span><span class="u_comefrom"></span></li>
						<li><span class="b">证件类型：</span><span class="u_idtype"></span></li>
						<li><span class="b">证件号码：</span><span class="u_idcard"></span></li>
						<li><span class="b">工作单位：</span><span class="u_workunit"></span></li>
						<li><span class="b">联系地址：</span><span class="u_address"></span></li>
						<li><span class="b">邮政编码：</span><span class="u_zipcode"></span></li>
						<li><span class="b">手机号码：</span><span class="u_mobiletel"></span></li>
						<li><span class="b">联系电话：</span><span class="u_telephone"></span></li>
						<li><span class="b">QQ：</span><span class="u_qq"></span></li>
						<li><span class="b">MSN：</span><span class="u_msn"></span></li>
						<li><span class="b">个人主页：</span><span class="u_homepage"></span></li>
					</ul>
				</div>
				<div class="clear"></div>
			</div>
			<!--/content-->
			<div id="sidebar">
				<!--<div class="searchfirend">
					<h3>快速定位</h3>
					<form method="post" action="cp.aspx?ac=friend">
						<p> 用户名:
							<input type="text" name="username" value="" class="t_input" size="15" />
							<input type="hidden" name="searchmode" value="1" />
							<input type="hidden" name="findsubmit" value="1" />
							<input type="submit" name="findsubmit_btn" value="找人" class="submit" />
						</p>
					</form>
				</div>-->
				<div class="sidebox">
					<h2 class="title">
						<p class="r_option"> <a href="{site.Dir}user/friendlist/index.aspx">全部</a> </p>
						我的好友 </h2>
                    <textarea id="tplRightMenu" style="display:none">{#foreach $T.table as record}
<li>
	<div class="avatar48"><a href="javascript:void(0);" onclick="ShowUserPage({$T.record.frienduserid});" title="{$T.record.friendusername}"><img src="{site.Dir}avatar/{$T.record.frienduserid}_m.jpg" onerror="this.src='{site.Dir}avatar/0_m.jpg'" alt="{$T.record.friendusername}" width="48" height="48" /></a></div>
	<p><a href="javascript:void(0);" onclick="ShowUserPage({$T.record.frienduserid});" title="{$T.record.friendusername}">{$T.record.friendusername}</a></p>
</li>
{#/for}</textarea>
					<ul class="avatar_list" id="ajaxTopFriendList">
					</ul>
				</div>
			</div>
		</div>
		<div id="bottom"></div>
	</div>
	<div id="footer" title=""> </div>
</div>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=footer" width="100%" height="50" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="iffooter"></iframe>
</body>
</html>
